<template>
  <div class="page">
    <el-container style="height: 100%" direction="vertical">
      <el-header>
        <el-row>
          <el-col :span="22">
            <div class="grid-content bg-purple">
              <span aria-setsize="20px">小助手</span>
            </div>
          </el-col>
          <el-col :span="2">
              <div class="grid-content bg-purple-light" style="align:right">
              <el-dropdown>
                <i class="el-icon-user" style="margin-right: 15px">
                  <span>王小虎</span>
                </i>
                <template #dropdown>
                  <el-dropdown-menu>
                    <el-dropdown-item>基本信息</el-dropdown-item>
                    <el-dropdown-item>退出登录</el-dropdown-item>
                    <el-dropdown-item>删除</el-dropdown-item>
                  </el-dropdown-menu>
                </template>
              </el-dropdown>
            </div>
            </el-col>
        </el-row>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu :default-openeds="['1', '3']">
            <el-submenu index="1">
              <template #title><i class="el-icon-message"></i>导航一</template>
              <el-menu-item-group>
                <template #title>分组一</template>
                <el-menu-item index="1-1">选项1</el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group title="分组2">
                <el-menu-item index="1-3">选项3</el-menu-item>
              </el-menu-item-group>
              <el-submenu index="1-4">
                <template #title>选项4</template>
                <el-menu-item index="1-4-1">选项4-1</el-menu-item>
              </el-submenu>
            </el-submenu>
            <el-submenu index="2">
              <template #title><i class="el-icon-menu"></i>导航二</template>
              <el-menu-item-group>
                <template #title>分组一</template>
                <el-menu-item index="2-1">选项1</el-menu-item>
                <el-menu-item index="2-2">选项2</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group title="分组2">
                <el-menu-item index="2-3">选项3</el-menu-item>
              </el-menu-item-group>
              <el-submenu index="2-4">
                <template #title>选项4</template>
                <el-menu-item index="2-4-1">选项4-1</el-menu-item>
              </el-submenu>
            </el-submenu>
            <el-submenu index="3">
              <template #title><i class="el-icon-setting"></i>导航三</template>
              <el-menu-item-group>
                <template #title>分组一</template>
                <el-menu-item index="3-1">选项1</el-menu-item>
                <el-menu-item index="3-2">选项2</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group title="分组2">
                <el-menu-item index="3-3">选项3</el-menu-item>
              </el-menu-item-group>
              <el-submenu index="3-4">
                <template #title>选项4</template>
                <el-menu-item index="3-4-1">选项4-1</el-menu-item>
              </el-submenu>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-container>
          <el-main>Main</el-main>
          <el-footer>xpf版权所有，侵权必究</el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>
 
 <style>
.el-header {
  background-color: rgb(238, 241, 246);
  color: #333;
  line-height: 10vh;
}
.el-aside {
  background-color: rgb(238, 241, 246);
  color: #333;
  text-align: center;
  line-height: 90vh;
}
.el-main {
  background-color: rgb(238, 241, 246);
  color: #333;
  text-align: center;
  line-height: 80vh;
}
.el-footer {
  background-color: rgb(238, 241, 246);
  color: #333;
  text-align: center;
  line-height: 10vh;
}
</style>